Class PspValidatingReader
java.lang.Object
eu.europa.ec.taxud.cesop.validation.PspValidatingReader
Stateful wrapper for PSP XML reader. Performs static validations during reading.
-
Constructor Summary
ConstructorsConstructorDescriptionPspValidatingReader(IPspXmlReader xmlReader, ValidationSettings settings, boolean checkBRs, Set<String> corDocRefIds) Instantiates a new Psp validating reader. -
Method Summary
Modifier and TypeMethodDescriptionintintGets validation errors.Validate parts iterator.
-
Constructor Details
-
PspValidatingReader
public PspValidatingReader(IPspXmlReader xmlReader, ValidationSettings settings, boolean checkBRs, Set<String> corDocRefIds) Instantiates a new Psp validating reader.- Parameters:
xmlReader- the xml readersettings- the settingscheckBRs- if true validate BR checks
-
-
Method Details
-
getValidationErrors
Gets validation errors.- Returns:
- the validation errors
-
validateParts
Validate parts iterator. This iterator extracts and validates the list ofXmlPaymentDataMsgPartfrom the XML content.- Returns:
- the iterator
-
getNumberOfTransaction
public int getNumberOfTransaction() -
getNumberOfPayees
public int getNumberOfPayees() -
getXmlMessageSpec
-